{% load main_tags %}

<nav>
	<ul class="pagination">
		{% if page_obj.has_previous %}
			<li>
				<a href="{{ page_obj.previous_page_number }}" aria-label="Previous">
					<span aria-hidden="true">&laquo;</span>
					<span class="sr-only">Previous</span>
				</a>
			</li>
		{% endif %}


		{% pagination page_obj paginator 7 3 as page_list %}
		{{ page_list|safe }}

		{% if page_obj.has_next %}
			<li>
				<a href="{{ page_obj.next_page_number }}" aria-label="Next">
					<span aria-hidden="true">&raquo;</span>
					<span class="sr-only">Next</span>
				</a>
			</li>
		{% endif %}
	</ul>
</nav>